﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true"
    CodeFile="GenerateBarcodeForMH.aspx.cs" Inherits="WebTeamplate.Admin_GenerateBarcodeForMH" %>

<%@ Import Namespace="Utility" %>
<%@ Import Namespace="BusinessObject" %>
<%@ Register Assembly="Control" Namespace="PagerControl" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script src="../Js/BasicFunction.js"></script>

    <script src="../Js/ListView.js"></script>

    <script type="text/javascript" language="javascript">

        function popImg() {
            var w = 900;
            var h = 680;
            var wleft = (screen.width - w) / 2;
            var wtop = (screen.height - h) / 2;
            // IE5 and other old browsers might allow a window that is
            // partially offscreen or wider than the screen. Fix that.
            // (Newer browsers fix this for us, but let's be thorough.)
            if (wleft < 0) {
                w = screen.width;
                wleft = 0;
            }
            if (wtop < 0) {
                h = screen.height;
                wtop = 0;
            }
            var pURL = 'PopupBarCode.aspx';
            //var pURL='map.html';
            pInfo = 'toolbar=1,';
            pInfo += 'location=0,';
            pInfo += 'directories=0,';
            pInfo += 'status=0,';
            pInfo += 'menubar=1,';
            pInfo += 'scrollbars=1,';
            pInfo += 'resizable=1,';
            pInfo += 'width=' + w + 'px,';
            pInfo += 'height=' + h + 'px,';
            pInfo += 'left=' + wleft + ',';
            pInfo += 'top=' + wtop + ',';
            pInfo += 'text-align:center';
            //alert(pInfo);
            window.open(pURL, 'BarCode', pInfo, true);
        }
        function OpenPopUpBarCode() {
            popImg();
        }
    </script>

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table class="lvtBg" border="0" cellpadding="0" cellspacing="1" width="100%">
        <tbody>
            <tr>
                <td>
                    <hr noshade="noshade" size="1">
                </td>
            </tr>
            <tr>
                <td>
                    <table class="lvt small" border="0" cellpadding="3" cellspacing="1" width="100%">
                        <!-- Table Headers -->
                        <tbody>
                            <tr>
                                <td class="lvtCol" style="width: 80px;">
                                    Mã mặt hàng
                                </td>
                                <td class="lvtCol" style="width: 100px;">
                                    Mã phụ tùng
                                </td>
                                <td class="lvtCol" style="width: 240px;">
                                    Tên mặt hàng
                                </td>
                                <td class="lvtCol" style="width: 100px;">
                                    Xe
                                </td>
                                <td class="lvtCol" style="width: 90px;">
                                    Nước SX
                                </td>
                                <td class="lvtCol" style="width: 120px;">
                                    Hiệu
                                </td>
                                <td class="lvtCol" style="width: 50px;">
                                    Số lượng mã vạch
                                </td>
                            </tr>
                            <tr class="lvtColData" onmouseover="this.className='lvtColDataHover'" onmouseout="this.className='lvtColData'"
                                id="row_89" bgcolor="white">
                                <td class="repeaterLeftData">
                                    <%=objMatHang.MaMatHang %>
                                </td>
                                <td class="repeaterLeftData">
                                    <%=objMatHang.MaPhuTung %>
                                </td>
                                <td class="repeaterLeftData">
                                    <%=objMatHang.TenMatHang %>
                                </td>
                                <td class="repeaterLeftData">
                                    <%=xe %>
                                </td>
                                <td class="repeaterLeftData">
                                    <%# Server.HtmlEncode(Eval("NuocSX").ToString())%>
                                </td>
                                <td class="repeaterLeftData">
                                    <%# Server.HtmlEncode(Eval("Hieu").ToString())%>
                                </td>
                                <td class="repeaterRightData">
                                    <input runat="server" type="text" style="width: 60px;" class="txtNumber" value="1" id="txtSoLuongMaVach" />
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr class="rowDetail" align="right">
                <td colspan="2" class="dvtCellListInfo" align="center">
                    <asp:UpdatePanel ID="upnExport" runat="server">
                        <ContentTemplate>
                            <table width="100%" cellspacing="0" cellpadding="0" border="0" class="small" align="center">
                                <tr>
                                    <td align="center">
                                        <asp:Button ID="btnExportBarCode" runat="server" Text="Tạo mã vạch" Width="80px"
                                            CssClass="crmbutton 
small edit" onclick="btnExportBarCode_Click" />
<asp:Button ID="btnCancel" runat="server" Text="Bỏ qua" Width="80px"
                                            CssClass="crmbutton 
small edit" onclick="btnCancel_Click" />
                                    </td>
                                </tr>
                            </table>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
        </tbody>
    </table>

    <script type="text/javascript">


        function OpenPopUpBarCode() {
            popImg();
        }
        
      
       
    </script>

</asp:Content>
